package com.example.summer_pro.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContentData{
	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	public static class options{
		private Integer key;
		private String text;
		private boolean checked;//选择
		private Integer grade;//评分
		private Integer limit_number;
		private Integer remain_number;
	}

	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	public static class Questions{
		private Integer key;
		private String type;
		private String title;
		private String input;//填空
		private List<options> options;
		private List<Object> data;
		private Boolean required;
		private Boolean edited;
		private Integer value;
		private String description;
		private String score;
		private String answer;
	}

	private Integer q_id;
	private String title;
	private String date;
	private Integer state;//
	private List<Questions> questions;
	private boolean titleEditable;
	private boolean numberVisible;
	private String q_type;
	private int sum_score;

}